home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / unix / ch24 / 24fig06.wrl < prev    next >
Text File  |  1996-09-23  |  1KB  |  69 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright [1997] By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Directed sound emitter
  8.         Sound {
  9.             source AudioClip {
  10.                 url "willow1.wav"
  11.                 loop TRUE
  12.             }
  13.             direction 1.0 0.0 0.0
  14.             minFront 5.0
  15.             minBack  1.0
  16.             maxFront 10.0
  17.             maxBack  2.0
  18.         },
  19.     # Emitter marker
  20.         Shape {
  21.             appearance Appearance {
  22.                 material Material {
  23.                     diffuseColor  0.0 0.0 0.0
  24.                     emissiveColor 1.0 1.0 1.0
  25.                 }
  26.             }
  27.             geometry Sphere { radius 0.25 }
  28.         },
  29.     # Minimum range ellipsoid marker
  30.         Transform {
  31.             translation 2.0 0.0 0.0
  32.             scale 3.0 2.0 2.0
  33.             children DEF MinMarker Shape {
  34.                 appearance Appearance {
  35.                     material Material {
  36.                         diffuseColor  0.0 0.0 0.0
  37.                         emissiveColor 1.0 0.0 0.5
  38.                     }
  39.                 }
  40.                 geometry Cylinder {
  41.                     radius 1.0
  42.                     height 0.01
  43.                     side   FALSE
  44.                     bottom FALSE
  45.                 }
  46.             }
  47.         },
  48.     # Maximum range ellipsoid marker
  49.         Transform {
  50.             translation 4.0 0.0 0.0
  51.             scale 6.0 4.0 4.0
  52.             children DEF MaxMarker Shape {
  53.                 appearance Appearance {
  54.                     material Material {
  55.                         diffuseColor  0.0 0.0 0.0
  56.                         emissiveColor 0.5 0.0 1.0
  57.                     }
  58.                 }
  59.                 geometry Cylinder {
  60.                     radius 1.0
  61.                     height 0.001
  62.                     side   FALSE
  63.                     bottom FALSE
  64.                 }
  65.             }
  66.         }
  67.     ]
  68. }
  69.